package responsibilityChain;

public class CollegeApprover extends Approver{
    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice()>5000 && purchaseRequest.getPrice()<=30000){
            System.out.println(purchaseRequest.getDesc()+ "请求" + " 被 " + this.name + " 处理");
        }else{
            this.approver.processRequest(purchaseRequest);
        }
    }
}
